* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Martel Sans', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;

}

/* Fondo y texto */
.hero {
    background: url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5') no-repeat center center/cover;
    padding: 15.7em 2em;
    text-align: center;
    color: white;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2em;
    border-radius: 10px;
    display: inline-block;
}

.hero h1 {
    font-size: 2em;
    color: #fff;
}

.hero p {
    margin: 1em 0;
    font-size: 1.1em;
}

.hero button {
    background-color: #8e0f5c;
    color: white;
    border: none;
    padding: 0.8em 2em;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

/* BotÃ³n registro (CTA) */
.registro {
    display: inline-block;
    background-color: #e6007e;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.registro:hover {
    background-color: #c3006b;
}


/* Contacto */
.contacto {
    display: flex;
    justify-content: space-between;
    padding: 5em 2em;
    background-color: #8e0f5c;
    color: white;
    img{
        position: fixed;
        width: 590px;
        height: 355px;
    }


    .formulario {
        flex: 0.5;
        margin-right: 10em;
        margin-left: 100px;
    }

    .formulario h2 {
        margin-bottom: 20px;
        font-size: 2em;
        font-weight: bold;
        margin-left: 90px;
        text-align: left;
    }

    form input,
    form textarea {
        width: 100%;
        padding: 0.7em;
        margin-bottom: 2em;
        border: none;
        border-radius: 5px;
    }

    form button {
        background-color: white;
        color: #8e0f5c;
        padding: 0.7em 2em;
        border: none;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        margin-left: 140px;
    }

    .formulario label {
        display: block;
        margin-top: 5px;
        margin-bottom: 5px;
        font-weight: normal;
        color: #ffffff;
        text-align: left;
        width: 100%;
        max-width: 500px;
    }

    html {
        scroll-behavior: smooth;
    }
}

/* Mensaje contacto*/
.mensaje {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.mensaje.visible {
    opacity: 1;
    pointer-events: auto;
}

.mensaje.exito {
    background-color: #41a358;
}

.mensaje.error {
    background-color: #dc5360;
}

@media (max-width: 600px) {

    .hero {
        padding: 6em 1em;
    }

    .hero-content {
        padding: 1em;
        width: 100%;
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .hero button,
    .registro {
        width: 100%;
        padding: 1em;
        font-size: 1em;
        border-radius: 8px;
        display: block;
        margin: 0 auto;
        box-sizing: border-box;
    }


    .contacto {
        display: flex;
        flex-direction: column;
        padding: 2em 1em;
        gap: 2em;
    }

    .imagen-contacto {
        display: none;
    }


    .formulario {
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .formulario h2 {
        font-size: 1.5em;
        margin-left: 0;
        text-align: center;
    }

    form input,
    form textarea {
        font-size: 1em;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    form button {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }

    .formulario label {
        font-size: 1em;
        text-align: left;
    }
}